package com.example.administrator.waitan.hot.today.todaycontent;

import android.app.ProgressDialog;
import android.content.Intent;
import android.graphics.drawable.AnimationDrawable;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.LayoutInflater;
import android.view.View;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.ImageView;
import android.widget.ListView;

import com.android.volley.RequestQueue;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.StringRequest;
import com.android.volley.toolbox.Volley;
import com.example.administrator.waitan.R;
import com.example.administrator.waitan.base.BaseActivity;
import com.example.administrator.waitan.homepage.homepagercontent.HomePagerContentBeans;
import com.google.gson.Gson;

import java.util.List;

/**
 * Created by Administrator on 2016/1/16.
 */
public class TodayContentActivity extends BaseActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_today_content);
        final WebView pic = (WebView) findViewById(R.id.webView_item_lv_today_content);
        pic.getSettings().setJavaScriptEnabled(true);
        pic.setWebViewClient(new WebViewClient() {
            @Override
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
                view.loadUrl(url);
                return true;
            }
        });
        Intent intent = getIntent();
        final String Id = getIntent().getStringExtra("ID");
        pic.loadUrl(Id);
//        final ProgressDialog pd = ProgressDialog.show(this, "客观不可以", "加载中,请稍等....");
//        final Handler handler = new Handler(new Handler.Callback() {
//            @Override
//            public boolean handleMessage(Message message) {
//                pd.dismiss();
//                return true;
//            }
//        });
//        new Thread(new Runnable() {
//            @Override
//            public void run() {
//                handler.sendEmptyMessage(1);
//            }
//        }).start();

    }


}
